package wang;

import java.util.Random;
import java.util.Scanner;

public class suijipaixu {
    public static void main(String[] args) {
        int[] number = new int[5];
        Random data = new Random();
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < number.length;i++) {
            System.out.println("请输入第" + (i+1) +"位同事的工号");
            int code = sc.nextInt();
             number[i] = code;
        }
        for (int i = 0; i < number.length; i++) {
            int a = data.nextInt(5);
            int temp = number[a];
            number[a] = number[i];
            number[i] = temp;
        }
        for (int i = 0; i < number.length; i++) {
            System.out.print(number[i]);

        }
    }
}
